package com.yunao.service.report.bean.compare;




import com.yunao.service.report.bean.SearchBean;

import java.util.Comparator;

public class ComparatorByLongTime<T extends SearchBean> implements Comparator<T> {

	public int compare(T bean1, T bean2) {
		String time1 =bean1.getRq()+"" ;
		String time2 =bean2.getRq()+"" ;
		return -1 * time1.compareTo(time2);
	}
}
